package com.snl.micro.blog.user.dao.mapper;


import com.snl.micro.blog.common.query.LoginParam;
import com.snl.micro.blog.common.query.UserQuery;
import com.snl.micro.blog.user.pojo.po.UserInfoPo;
import com.snl.micro.blog.user.pojo.vo.UserVo;

import java.util.List;

public interface UserMapper {
    void saveUser(UserInfoPo po);
    List<UserInfoPo> query(UserQuery query);
    UserInfoPo login(LoginParam param);

    List<UserInfoPo> findFans(Long userId);

    List<UserInfoPo> findFollowings(Long userId);

    void subscrible(Long followerId, Long followingId);

    void unsubscrible(Long followerId, Long followingId);
}
